package com.bf.xpdd.service;

import java.util.List;

import com.bf.xpdd.domain.SiteSeller;
import com.bf.xpdd.exception.BaseException;

/**
 * Account Service
 * 
 * @author Fantastic
 * @version 1.0.0 2011-06-14
 * @since 1.0.0
 */
public interface AccountService
{
	/**
	 * add new seller
	 * @param seller
	 * @throws BaseException
	 */
	void addNewSeller(SiteSeller seller, TaobaoService taobaoService) throws BaseException;

	/**
	 * session key persistent
	 * @param seller
	 */
	void persistSession(SiteSeller seller) throws BaseException;
	
	/**
	 * find all session key
	 * @return
	 * @throws BaseException
	 */
	List<SiteSeller> findAllSessionKey() throws BaseException;

	/**
	 * find session key by nick
	 * @param nick
	 * @return
	 * @throws BaseException
	 */
	SiteSeller findSessionKeyByNick(String nick) throws BaseException;

	/**
	 * 更新访问时间
	 * @param siteSeller
	 */
	void updateAccessTime(SiteSeller seller) throws BaseException;

	/**
	 * 删除用户sessionKey
	 * @param siteSeller
	 */
	void removeSessionKey(SiteSeller seller) throws BaseException;
	
	/**
	 * 删除所有用户sessionKey
	 * @param siteSeller
	 */
	void removeAllSessionKey() throws BaseException;
	
	/**
	 * 重置标签用户 
	 * @param seller
	 * @param taobaoService
	 * @throws BaseException
	 */
	void resetTagUser(SiteSeller seller, TaobaoService taobaoService) throws BaseException;
}
